The applet has many parameters that can be configured
to suite your needs, for example you can change all the colors
and the texts to localize the applet and you can even change the whole
layout on the applet.
A parameter is given by inserting a <param> tag
within the <applet> and </applet>
tags, like this :
<applet code=Search.class width=325 heigth=171>
<param name=firstpage value=index.html>
</applet>
None of these parameters are required, if a parameter is not
given then default values will be used.
The most important parameter to get right is the "firstpage"
parameter, it should link to the page to start the search from,
default is index.html
Note: Some of the layout parameters will not work in IE 3.0 because of
poor Java support in the IE 3.0 browser.
All the parameters works fine in Netscape 3.x and higher, Internet Explorer 4.x and higher.
|
firstpage
the page to start to search from, default index.html
this page should contain links to all other pages since
the applet searches by extracting links.
targetname
the target for where search results should be loaded in
default is the top window "_top"
maxhits
the maximum number of hits, default 30.
linksonly
If set to true only the url's of the pages that matched
the search will be shown instead of the page title.
truncate
Truncate the page title text displayed when a hit is found, default 50 characters.
|
labeltext
The text on the top label, default "Site Search Applet"
checkboxtext1
The first text to the left of the checkboxes, default "Search For".
checkboxtext2
The text to the right of the first checkbox, default "Any Word".
checkboxtext3
The text to the right of the second checkbox, default "All Words".
checkboxtext4
The text to the right of the third checkbox, default "Phrases".
buttontext1
The text on the search button when idle, default "Search".
buttontext2
The text on the search button when searching, default "Stop".
completedtext
The text on the top label after a search is completed,
default "Search completed, double click on a link".
notfoundtext
The text on the top label after a search is completed and
no hits was found, deafult "No hits found".
searchingtext
The text on the top label when indicating which url is being searched,
default "Searching in: ".
readingtext
The text on the top label when indicating which url is being read,
default "Reading file: ".
parsingtext
The text on the top label when indicating that the applet is parsing for links,
default "Parsing for links: ".
|
labelfont
The font used for the label, default "Dialog".
appletfont
The font used for all other text on the applet, default "Dialog".
labelfontsize
The fontsize used on the label, default 12.
appletfontsize
The fontsize used for all other text on the applet, default 10.
|
labelfg
Top label foreground as hexadecimal value, default ffffff ( white )
labelbg
Top label background as hexadecimal value, default 0000ff ( blue )
appletbg
Main applet background as hexadecimal value, default 008080 ( darkgreen )
textfieldbg
Texfield background as hexadecimal value, default 00a880 ( green )
textfieldfg
Textfield foreground as hexadecimal value, default 000000 ( black )
checkboxbg
Checkbox background as hexadecimal value, default 008080 ( darkgreen )
checkboxfg
Checkbox foreground as hexadecimal value, default 000000 ( black )
buttonbg
Button background as hexadecimal value, default cccccc ( lightGray )
buttonfg
Button foreground as hexadecimal value, default 0000ff ( blue )
listbg
List background as hexadecimal value, default cccccc ( lightGray )
listfg
List foreground as hexadecimal value, default 0000ff ( blue )
|
labelx
labely
labelwidth
labelheight
The x, y coordinates and the width and height of the top label.
Default : 0,0,325,24
chbox1x
chbox1y
chbox1width
chbox1height
The x, y coordinates and the width and height of the text
to the left of the checkboxes, default : 6,30,61,11
chbox2x
chbox2y
chbox2width
chbox2height
The x, y coordinates and the width and height of the first checkbox.
Default : 70,30,68,11
chbox3x
chbox3y
chbox3width
chbox3height
The x, y coordinates and the width and height of the second checkbox.
Default : 138,30,68,11
chbox4x
chbox4y
chbox4width
chbox4height
The x, y coordinates and the width and height of the third checkbox.
Default : 206,30,60,11
txtfieldx
txtfieldy
txtfieldwidth
txtfieldheight
The x, y coordinates and the width and height of the search textfield.
Default : 6,50,251,28
buttonx
buttony
buttonwidth
buttonheight
The x, y coordinates and the width and height of the search button.
Default : 265,52,48,25
listx
listy
listwidth
listheight
The x, y coordinates and the width and height of the list.
Default : 6,84,307,77
|